package matrices;

public class MatrixVariableWrapper {
	private String variableName;
	private Matrix myMatrix;
	public MatrixVariableWrapper(String variableName, Matrix myMatrix){
		this.variableName = variableName;
		this.myMatrix = myMatrix;
	}
	public String add(MatrixVariableWrapper b){
		String returnStr = "\n" + this.variableName + " + " + b.variableName;
		returnStr += ("\n" + myMatrix);
		returnStr += ("\n add \n" + b.myMatrix);
		returnStr += ("\n is equal to " + myMatrix.mAdd(b.myMatrix));
		return returnStr;
	}
	public String sub(MatrixVariableWrapper b){
		String returnStr = "\n" + this.variableName + " + " + b.variableName;
		returnStr += ("\n" + myMatrix);
		returnStr += ("\n sub \n" + b.myMatrix);
		returnStr += ("\n is equal to " + myMatrix.mSubtract(b.myMatrix));
		return returnStr;
	}
}
